﻿CREATE TABLE [dbo].[ProductieRealizata] (
    [IDRealizat]        INT        IDENTITY (1, 1) NOT NULL,
    [IDDocumentDetaliu] BIGINT     NOT NULL,
    [Data]              DATETIME   DEFAULT (getdate()) NOT NULL,
    [Cantitate]         FLOAT (53) DEFAULT ((0)) NOT NULL,
    CONSTRAINT [PK_ProductieRealizata] PRIMARY KEY CLUSTERED ([IDRealizat] ASC),
    CONSTRAINT [FK_ProductieRealizata_DocumenteDetaliu] FOREIGN KEY ([IDDocumentDetaliu]) REFERENCES [dbo].[DocumenteDetaliu] ([IDDocumentDetaliu])
);

